{% extends "base.html" %} {%block css%}
<link rel="stylesheet" href="/css/index.css"> {%endblock%} {%block body%}

<div class="container">
    <div class="box">
        <div class="left">
            {%for t in tutorials%}
            <div class="tutorial">
                <h2>{{t.node.name}}</h2>
                <ul>
                    {%for t1 in t.children%}
                    <li>
                        <a href="/tutorials/{{t1.node.id}}">
                            <img src="{{t1.node.icon}}" alt="{{t1.node.name}}">
                            <h3>{{t1.node.name}}</h3>
                        </a>
                    </li>
                    {%endfor%}
                </ul>
            </div>
            {%endfor%}
        </div>
        <div class="right">
            <div class="latest">
                <p>最新的100篇教程</p>
                <ul>
                    {%for t in tutorial100%}
                    <li><a href="/tutorial/{{t.id}}.html">{{t.title}}</a></li>
                    {%endfor%}
                </ul>
            </div>
        </div>
    </div>
</div>
{%endblock%} {%block js%}
<script>
</script>
{%endblock%} {%block footer%}
<p>本站主要采用 rust 语言开发，<a href="https://gitee.com/dot2/tutorial" target="_blank">本站源码</a></p>
{%endblock%}